import {
	request
} from "@/config/request.js"
// 资讯列表

export const artList = (data) => {
	return request({
		url: 'art/art_list',
		method: 'post',
		data
	})
}// 资讯列表

export const config = (data) => {
	return request({
		url: 'index/config',
		method: 'post',
		data
	})
}
// 资讯详情+

export const artDetail = (data) => {
	return request({
		url: 'art/art_detail',
		method: 'post',
		data
	})
}

//商品帅选

export const getShopList = (data) => {
	return request({
		url: 'shop/goods_list',
		method: 'post',
		data
	})
}
//商品 详情

export const getShopDetail = (data) => {
	return request({
		url: 'shop/goods_detail',
		method: 'post',
		data
	})
}
// 商品评价
export const getShopEvaluate = (data) => {
	return request({
		url: 'shop/goods_evaluate',
		method: 'post',
		data
	})
}
//商品添加购物车

export const joinCart = (data) => {
	return request({
		url: 'cart/join_cart',
		method: 'post',
		data
	})
}
//商品 购物车 列表

export const getCartList = (data) => {
	return request({
		url: 'cart/car_list',
		method: 'post',
		data
	})
}

//购物车

export const getGoodsData = (data) => {
	return request({
		url: 'shop/goods_data',
		method: 'post',
		data
	})
}

//购物车删除

export const delGoodsCar = (data) => {
	return request({
		url: 'cart/car_del',
		method: 'post',
		data
	})
}